﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfProductoMnt.aspx.cs" Inherits="CO.wfProductoMnt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style6
        {
            width: 1%;
        }
        .style9
        {
            width: 13%;
        }
        .style10
        {
        }
        .style14
        {
        }
        .style17
        {
            width: 4%;
        }
        .style18
        {
            width: 11%;
        }
        .style19
        {
            width: 10%;
        }
    </style>

     <script type="text/javascript">

         function fDevolverSeleccion1(codigo, Descrip) {

             document.getElementById("<%= txtTipGasto.ClientID %>").value = codigo
             document.getElementById("<%= lblDsTGasto.ClientID %>").value = Descrip

         }


    </script>
</head>
<body>
    <form id="form1" runat="server">
       <div class="ToolBar">
           <asp:ImageButton ID="btnNuevo" runat="server" ToolTip="Nuevo" />
           <asp:ImageButton ID="btnGrabar" runat="server" onclick="btnGrabar_Click" 
               style="width: 14px" ToolTip="Grabar"/>
    </div>
  
            <div class="DataHeader">
                <table id="TableDataHeader" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="3">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            Datos Producto
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                <table width="100%" cellpadding="0" cellspacing="2">
                                    <tr>
                                        <td colspan="9">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            &nbsp;
                                        </td>
                                        <td class="style18">
                                            Cod. Producto</td>
                                        <td colspan="6">
                                            <asp:TextBox ID="txtidProducto" runat="server" CssClass="esdTextBox" 
                                                Enabled="False" ></asp:TextBox>
                                            <input id="hddIdProducto" runat ="server" type="hidden" />
                                        </td>
                                        <td class="style6">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            &nbsp;
                                        </td>
                                        <td class="style18">
                                            Producto
                                        </td>
                                        <td class="style14">
                                            <asp:TextBox ID="txtProducto" runat="server" Width="250px" 
                                                CssClass="esdTextBox" ></asp:TextBox>
                                        </td>
                                        <td class="style10">
                                            &nbsp;
                                        </td>
                                        <td class="style19">
                                            Moneda</td>
                                        <td class="style10">
                                            <asp:DropDownList ID="ddMoneda" runat="server" Width="150px">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style9">
                                            &nbsp;</td>
                                        <td class="style17">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                           
                                        </td>
                                        <td class="style18">
                                            Alias</td>
                                        <td class="style14">
                                            <asp:TextBox ID="txtAlias" runat="server" Width="250px" 
                                                CssClass="esdTextBox" ></asp:TextBox>
                                        </td>
                                        <td class="style10">
                                        </td>
                                        <td class="style19">
                                            Val. de Reposición</td>
                                        <td>
                                            <asp:TextBox ID="txtValReposicion" runat="server" Width="150px" 
                                                CssClass="esdTextBox" ></asp:TextBox>
&nbsp;</td>
                                        <td class="style9">
                                            Afecto IGV</td>
                                        <td>
                                            
                                            <asp:CheckBox ID="ChkAfectoIgv" runat="server" Text=" " AutoPostBack="True" />
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            &nbsp;
                                        </td>
                                        <td class="style18">
                                            Grupo</td>
                                        <td class="style14">
                                            <asp:DropDownList ID="ddGrupo" runat="server" Width="250px" 
                                                CssClass="esdTextBox" AutoPostBack="True" 
                                                onselectedindexchanged="ddGrupo_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style10">
                                            &nbsp;
                                        </td>
                                        <td class="style19">
                                            UM Compra</td>
                                        <td>
                                            <asp:DropDownList ID="ddUmCompra" runat="server" Width="150px" 
                                                CssClass="esdTextBox">
                                            </asp:DropDownList>
                                        </td>
                                       
                                        <td class="style9">
                                            Producto Activo </td>
                                        <td class="style17">
                                            <asp:CheckBox ID="ChkProductoActivo" runat="server" Text=" " />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            &nbsp;
                                        </td>
                                        <td class="style18">
                                            Familia</td>
                                        <td class="style14">
                                            <asp:DropDownList ID="ddFamilia" runat="server" Width="250px" 
                                                CssClass="esdTextBox" AutoPostBack="True" 
                                                onselectedindexchanged="ddFamilia_SelectedIndexChanged" >
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style10">
                                            &nbsp;
                                        </td>
                                        <td class="style19">
                                            UM Consumo
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddUmConsumo" runat="server" Width="150px" 
                                                CssClass="esdTextBox" >
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style9">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            &nbsp;</td>
                                        <td class="style18">
                                            Sub Familia</td>
                                        <td class="style14">
                                            <asp:DropDownList ID="ddSubFamilia" runat="server" Width="250px" 
                                                CssClass="esdTextBox" >
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style10">
                                            &nbsp;</td>
                                        <td class="style19">
                                            Factor Equiv.</td>
                                        <td>
                                            <asp:TextBox ID="txtFactorEquiv" runat="server" Width="150px" 
                                                CssClass="esdTextBox"></asp:TextBox>
                                        </td>
                                        <td class="style9">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            &nbsp;</td>
                                        <td class="style18">
                                            &nbsp;</td>
                                        <td class="style14" align="right" colspan="2">
                                            T. de Gasto</td>
                                        <td class="style19">
                                            <asp:TextBox ID="txtTipGasto" runat="server" CssClass="esdTextBox" Width="80px"></asp:TextBox>
                                            <input id="Hidden1" type="hidden" />
                                            <input id="hddTipGasto" runat="server" type="hidden" />
                                         
                                            <asp:ImageButton ID="btnTipGasto" runat="server" onclick="btnTipGasto_Click" />
                                         
                                        </td>
                                        <td>
                                            <asp:TextBox ID="lblDsTGasto" runat="server" CssClass="esdTextBox" 
                                                Width="150px"></asp:TextBox>
                                        </td>
                                        <td class="style9">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="9">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                <table width="100%" cellpadding="0" cellspacing="2">
                                 
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                        <td rowspan="3" align="center">
                                            &nbsp;
                                            <table>
                                                <tr>
                                                <td>
                                            <asp:GridView ID="GvDetalleProducto" runat="server" AutoGenerateColumns="False" >
                                                       
                                                    
                                                <Columns>
                                                    <asp:TemplateField HeaderText="IdPrese">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtIdPresen" runat="server" CssClass="esdTextBox" Text='<%# DataBinder.Eval(Container, "DataItem.Id_prodprese") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                        
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Presentacion">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPresentacion" runat="server" CssClass="esdTextBox" 
                                                                Text='<%# DataBinder.Eval(Container, "DataItem.Ds_prodprese") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Und.Pres">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtUndPres" runat="server" CssClass="esdTextBox" 
                                                                Text='<%# DataBinder.Eval(Container, "DataItem.Nu_uniprese") %>' ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Uni.Medida">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtUndMedida" runat="server" CssClass="esdTextBox" 
                                                                Text='<%# DataBinder.Eval(Container, "DataItem.Nu_umprese") %>' ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Peso Neto">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPesoNeto" runat="server" CssClass="esdTextBox" 
                                                                Text='<%# DataBinder.Eval(Container, "DataItem.Qt_pesoneto") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Peso Bruto">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPesoBruto" runat="server" CssClass="esdTextBox" 
                                                                Text='<%# DataBinder.Eval(Container, "DataItem.Qt_pesobruto") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Precio">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPrecio" runat="server" CssClass="esdTextBox" 
                                                                Text='<%# DataBinder.Eval(Container, "DataItem.Mt_precio") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                            </td>
                                            <td>

                                                <asp:ImageButton ID="btnNuevoItem" runat="server" 
                                                    onclick="btnNuevoItem_Click" />
                                                <br />
                                                <br />

                                            </td>
                                            </tr>
                                            </table>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center" style="color: #FF0000">
                                            &nbsp;
                                            <asp:Label ID="lblMensaje" runat="server" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                    </tr>
               
                </table>
            </div>
            <div class="DataDetail">
                <table width="100%" cellpadding="0" cellspacing="2">
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;</td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
         <!-- Popup Remuneraciones -->
            
         <!--Fin Popup Remneraciones -->
  
    </form>
</body>
</html>
